import request from '@/utils/myrequest'

export function getList(kvs) {
  return request({
    url: 'mtms/ToolingMaintain/getlist',
    method: 'get',
    kvs
  })
}

export function add(kvs) {
  return request({
    url: 'mtms/toolingMaintain/add',
    method: 'post',
    kvs
  })
}

export function del(kvs) {
  return request({
    url: 'mtms/toolingMaintain/delete',
    method: 'delete',
    kvs
  })
}

export function edit(kvs) {
  return request({
    url: 'mtms/toolingMaintain/update',
    method: 'post',
    kvs
  })
}

export function initData(kvs) {
  return request({
    url: 'mtms/toolingMaintain/initkvs',
    method: 'post',
    kvs
  })
}

export default { add, edit, del, initData, getList }

